package com.hpf.community.constants;

/**
 * @Description:
 * @Author: hpf
 * @Date: 2020/1/19 14:15
 */
public class Constants {
    /**
     * 响应码常量
     */
    public static final String SYSTEM_ENCODING = "UTF-8";// 系统编码
//    public static final int RESPONSE_CODE_SUCCESS = 200;// 响应成功
    public static final int RESPONSE_CODE_SUCCESS = 0;// 响应成功
    public static final int RESPONSE_CODE_ERROR = 500;// 响应失败
    public static final int RESPONSE_CODE_LOGIN_FAILED = 401;// 登录失败
    public static final int RESPONSE_CODE_TOKEN_FAILURE = 403;// 登录的 token 已过期 或者 不存在
    public static final int RESPONSE_CODE_HANDLE_FAILURE = 600;//工作项已被别人办理
    public static final int RESPONSE_CODE_URL_FAILURE = 700;// 应用无权限访问此接口
    public static final String RESPONSE_MSG_ERROR = "/error"; //异常跳转地址


    /**
     * 系统错误信息
     */
    public static final String SYSTEM_ERROR_MSG = "系统内部错误,请刷新页面重试或联系管理员解决";

    public static final String NO_ROLE_ERROR = "当前登陆人未配置相应权限";

    public static final String PARAM_ERROR = "参数错误";
}
